import React from 'react';
import { inject, observer } from 'mobx-react';
import { ConfigProvider } from 'antd';
import zhCN from 'antd/es/locale/zh_CN';
import Routes from '@/routes';
import '@/styles/index.less';

const App = inject('app')(observer(({ app }) => {
  return (
    <ConfigProvider locale={zhCN}>
      <Routes routes={app.routeArr} />
    </ConfigProvider>
  );
}));

export default App;
